
<!DOCTYPE html>
<html lang="zh-CN" class="loading">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>peony&#39;s blogs</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="google" content="notranslate" />
    <meta name="keywords" content="peony,"> 
    
    <meta name="author" content="peony"> 
    <link rel="alternative" href="atom.xml" title="peony&#39;s blogs" type="application/atom+xml"> 
    <link rel="icon" href="/img/favicon63.png"> 
    
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">

    
<link rel="stylesheet" href="/css/diaspora.css">

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({
              google_ad_client: "ca-pub-8691406134231910",
              enable_page_level_ads: true
         });
    </script>
    <script async custom-element="amp-auto-ads"
        src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
    </script>
<meta name="generator" content="Hexo 4.2.0"></head>

<body class="loading">
    <span id="config-title" style="display:none">peony&#39;s blogs</span>
    <div id="loader"></div>
    <div class="nav">
    <ul id="menu-menu" class="menu">
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/whoami/" title="Whoami" target="_blank" rel="noopener">Whoami</a>
        </li>
        
        <li class="  menu-item menu-item-type-post_type menu-item-object-page">
            <a href="https://github.com/PPeony" title="Github(目前没有任何项目，除了这篇博客)" target="_blank" rel="noopener">Github(目前没有任何项目，除了这篇博客)</a>
        </li>
        
        <li class="  menu-item menu-item-type-post_type menu-item-object-page">
            <a href="https://leetcode-cn.com/u/peony-2/" title="leetcode" target="_blank" rel="noopener">leetcode</a>
        </li>
        
        <li class="  menu-item menu-item-type-post_type menu-item-object-page">
            <a href="https://blog.csdn.net/qq_15764477" title="CSDN" target="_blank" rel="noopener">CSDN</a>
        </li>
        
        <li class="pview menu-item menu-item-type-post_type menu-item-object-page">
            <a href="/categories/" title="分类" target="_blank" rel="noopener">分类</a>
        </li>
        
    </ul>
    <p id="copyright">
        &copy; 2020 peony.
        Powered by <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>
        Theme <a href="https://github.com/Fechin/hexo-theme-diaspora" title="Diaspora" target="_blank" rel="noopener">Diaspora</a>
        by Fechin
    </p>
</div>

<div id="container">
    
<div id="screen">
    <div id="mark">
        <div class="layer" data-depth="0.4">
            <img src="/img/welcome-cover2.jpg" id="cover" crossorigin="anonymous" width="1920" height="1080">
        </div>
    </div>
    <div id="vibrant">
        <svg viewBox="0 0 2880 1620" height="100%" preserveAspectRatio="xMaxYMax slice">
            <polygon opacity="0.7" points="2000,1620 0,1620 0,0 600,0 "/>
        </svg>
        <div></div>
    </div>
    <div id="header">
        <div>
            <a class="image-logo" href="/"></a>
            <div class="icon-menu switchmenu"></div>
        </div>
    </div>
    
    <div id="post0">
        <p>二月 23, 2020</p>
        <h2><a href="/2020/02/23/leetcode56-%E5%90%88%E5%B9%B6%E5%8C%BA%E9%97%B4%E5%92%8C%E5%8F%91%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/" title="leetcode56.合并区间和发现的问题" class="posttitle">leetcode56.合并区间和发现的问题</a></h2>
        <p class="summary">leetcode56. 合并区间
给出一个区间的集合，请合并所有重叠的区间。


示例 1:输入: [[1,3],...</p>
    </div>
    
</div>

    <div id="primary">
        
<div class="post">
    <a href="/2020/02/23/leetcode56-%E5%90%88%E5%B9%B6%E5%8C%BA%E9%97%B4%E5%92%8C%E5%8F%91%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/" title="leetcode56.合并区间和发现的问题">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 23, 2020</p>
        <h3><a href="/2020/02/23/leetcode56-%E5%90%88%E5%B9%B6%E5%8C%BA%E9%97%B4%E5%92%8C%E5%8F%91%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/" title="leetcode56.合并区间和发现的问题" class="posttitle">leetcode56.合并区间和发现的问题</a></h3>
        <p>leetcode56. 合并区间
给出一个区间的集合，请合并所有重叠的区间。


示例 1:输入: [[1,3],[2,6],[8,10],[15,18]...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/23/leetcode61-%E6%97%8B%E8%BD%AC%E9%93%BE%E8%A1%A8/" title="leetcode61.旋转链表">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 23, 2020</p>
        <h3><a href="/2020/02/23/leetcode61-%E6%97%8B%E8%BD%AC%E9%93%BE%E8%A1%A8/" title="leetcode61.旋转链表" class="posttitle">leetcode61.旋转链表</a></h3>
        <p>leetcode61. 旋转链表

给定一个链表，旋转链表，将链表每个节点向右移动 k 个位置，其中 k 是非负数。


示例 1:输入: 1-&gt;2...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/23/leetcode86-%E5%88%86%E9%9A%94%E9%93%BE%E8%A1%A8/" title="leetcode86.分隔链表">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 23, 2020</p>
        <h3><a href="/2020/02/23/leetcode86-%E5%88%86%E9%9A%94%E9%93%BE%E8%A1%A8/" title="leetcode86.分隔链表" class="posttitle">leetcode86.分隔链表</a></h3>
        <p>leetcode86. 分隔链表

给定一个链表和一个特定值 x，对链表进行分隔，使得所有小于 x 的节点都在大于或等于 x 的节点之前。你应当保留两个分...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/23/leetcode142-%E7%8E%AF%E5%BD%A2%E9%93%BE%E8%A1%A82/" title="leetcode142.环形链表2">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 23, 2020</p>
        <h3><a href="/2020/02/23/leetcode142-%E7%8E%AF%E5%BD%A2%E9%93%BE%E8%A1%A82/" title="leetcode142.环形链表2" class="posttitle">leetcode142.环形链表2</a></h3>
        <p>leetcode142. 环形链表 II

给定一个链表，返回链表开始入环的第一个节点。 如果链表无环，则返回 null。为了表示给定链表中的环，我们使用...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/23/leetcode141-%E7%8E%AF%E5%BD%A2%E9%93%BE%E8%A1%A8/" title="leetcode141.环形链表">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 23, 2020</p>
        <h3><a href="/2020/02/23/leetcode141-%E7%8E%AF%E5%BD%A2%E9%93%BE%E8%A1%A8/" title="leetcode141.环形链表" class="posttitle">leetcode141.环形链表</a></h3>
        <p>leetcode141. 环形链表

给定一个链表，判断链表中是否有环。为了表示给定链表中的环，我们使用整数 pos 来表示链表尾连接到链表中的位置（索引...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/21/leetcode19-%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E7%9A%84%E5%80%92%E6%95%B0%E7%AC%ACn%E4%B8%AA%E8%8A%82%E7%82%B9/" title="leetcode19.删除链表的倒数第n个节点">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 21, 2020</p>
        <h3><a href="/2020/02/21/leetcode19-%E5%88%A0%E9%99%A4%E9%93%BE%E8%A1%A8%E7%9A%84%E5%80%92%E6%95%B0%E7%AC%ACn%E4%B8%AA%E8%8A%82%E7%82%B9/" title="leetcode19.删除链表的倒数第n个节点" class="posttitle">leetcode19.删除链表的倒数第n个节点</a></h3>
        <p>leetcode19. 删除链表的倒数第N个节点
给定一个链表，删除链表的倒数第 n 个节点，并且返回链表的头结点。示例：给定一个链表: 1-&gt;2-...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/21/leetcode16-%E6%9C%80%E6%8E%A5%E8%BF%91%E7%9A%84%E4%B8%89%E6%95%B0%E4%B9%8B%E5%92%8C/" title="leetcode16.最接近的三数之和">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 21, 2020</p>
        <h3><a href="/2020/02/21/leetcode16-%E6%9C%80%E6%8E%A5%E8%BF%91%E7%9A%84%E4%B8%89%E6%95%B0%E4%B9%8B%E5%92%8C/" title="leetcode16.最接近的三数之和" class="posttitle">leetcode16.最接近的三数之和</a></h3>
        <p>leetcode16.最接近的三数之和

给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数，使得它们的...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/21/leetcode15-%E4%B8%89%E6%95%B0%E4%B9%8B%E5%92%8C/" title="leetcode15.三数之和">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 21, 2020</p>
        <h3><a href="/2020/02/21/leetcode15-%E4%B8%89%E6%95%B0%E4%B9%8B%E5%92%8C/" title="leetcode15.三数之和" class="posttitle">leetcode15.三数之和</a></h3>
        <p>leetcode15.三数之和

给定一个包含 n 个整数的数组 nums，判断 nums 中是否存在三个元素 a，b，c ，使得 a + b + c =...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/21/leetcode11-%E7%9B%9B%E6%B0%B4%E6%9C%80%E5%A4%9A%E7%9A%84%E5%AE%B9%E5%99%A8/" title="leetcode11.盛水最多的容器">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 21, 2020</p>
        <h3><a href="/2020/02/21/leetcode11-%E7%9B%9B%E6%B0%B4%E6%9C%80%E5%A4%9A%E7%9A%84%E5%AE%B9%E5%99%A8/" title="leetcode11.盛水最多的容器" class="posttitle">leetcode11.盛水最多的容器</a></h3>
        <p>leetcode11.盛水最多的容器

给定 n 个非负整数 a1，a2，…，an，每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线，...</p>
    </div>
</div>


<div class="post">
    <a href="/2020/02/21/leetcode1004-%E6%9C%80%E5%A4%A7%E8%BF%9E%E7%BB%AD1%E7%9A%84%E4%B8%AA%E6%95%B0III/" title="leetcode1004.最大连续1的个数III">
        <img src="/img/default.png" class="cover" width="680" height="440">
    </a>
    <div class="else">
        <p>二月 21, 2020</p>
        <h3><a href="/2020/02/21/leetcode1004-%E6%9C%80%E5%A4%A7%E8%BF%9E%E7%BB%AD1%E7%9A%84%E4%B8%AA%E6%95%B0III/" title="leetcode1004.最大连续1的个数III" class="posttitle">leetcode1004.最大连续1的个数III</a></h3>
        <p>leetcode1004. 最大连续1的个数 III

给定一个由若干 0 和 1 组成的数组 A，我们最多可以将 K 个值从 0 变成 1 。返回仅包含...</p>
    </div>
</div>


    </div>
    
    <div id="pager"><a href="/diaspora/9/" class="more">加载更多</a></div>
    
</div>
<div id="preview"></div>

</body>

<script src="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>


<script src="//lib.baomitu.com/jquery/1.8.3/jquery.min.js"></script>
<script src="/js/plugin.js"></script>
<script src="/js/diaspora.js"></script>


<link rel="stylesheet" href="/photoswipe/photoswipe.css">
<link rel="stylesheet" href="/photoswipe/default-skin/default-skin.css">


<script src="/photoswipe/photoswipe.min.js"></script>
<script src="/photoswipe/photoswipe-ui-default.min.js"></script>


<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
        </div>
    </div>
</div>




</html>
